﻿using HandyControl.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using HandyControl.Interactivity;
using WpfDemo.ViewModel;
using Microsoft.Extensions.DependencyInjection;
using WpfDemo.Common;

namespace WpfDemo.View.Sys.Auth
{
    /// <summary>
    /// Form.xaml 的交互逻辑
    /// </summary>
    public partial class Form : System.Windows.Window
    {
        public Form(string aa)
        {
            InitializeComponent();
         
            var vm = App.ServiceProvider.GetService<ViewModel.Sys.ModuleViewModel>();
            this.DataContext = vm;
            vm.BindRole(cbxRole);
        }

        private void LoginWindow_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            if (e.LeftButton == MouseButtonState.Pressed)
            {
                DragMove();
            }
        }
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
      
    }
}
